<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			function getInfo(){
				console.log("window.navigator");
				let n = window.navigator;
				
				for(let key in n){
					console.log("key:%s  \t value:%s",key , n[key])
				}
				
				
				console.log('n["userAgent"] '+(n["userAgent"]))
				
				
			}
		</script>
	</head>
	<body>
		
		<button type="button" onclick="getInfo()">获取浏览器信息</button>
		
		
	</body>
</html>
